//
//  FDThreeTableViewCell.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FDThreeTableViewCell.h"

@implementation FDThreeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMyView];
    }
    return self;
}

- (void)createMyView
{
    
    self.stepIcon = [[[UIImageView alloc] init] autorelease];
    [self.contentView addSubview:self.stepIcon];
    
    self.stepLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.stepLabel];
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.stepIcon.frame = CGRectMake(0, 0, 60, 120);
    
//    UIImageView *imageview = [[UIImageView alloc] init];
//    imageview.contentMode = UIViewContentModeScaleToFill;   //图片自适应imageview的大小
    
    
    
    self.stepLabel.frame = CGRectMake(130, 5, self.contentView.frame.size.width - 130, 30);
    self.stepLabel.backgroundColor = [UIColor clearColor];
    self.stepLabel.font = [UIFont systemFontOfSize:13.0];
    self.stepLabel.numberOfLines = 50;
    [self.stepLabel sizeToFit];
    
}






















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
